package com.crr.controller;

import com.crr.bean.CInquiry;
import com.crr.bean.CInquiryDetail;
import com.crr.common.bean.ResultBean;
import com.crr.common.controller.BaseController;
import com.crr.common.crud.BaseMapper;
import com.crr.service.CInquiryDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@Api(tags = "询价详情")
@RestController
@RequestMapping("/v1")
public class CInquiryDetailController extends BaseController {
    @Autowired
    CInquiryDetailService cInquiryDetailService;
    @ApiOperation("询价详情")
    @GetMapping("/inquiryDetail")
    public ResultBean queryOne(@RequestBody int id){
        List<Map> list = cInquiryDetailService.queryById(id);
        return  success("询价详情",list);
    }
}
